#encoding:utf-8
#name:lamp_config.py

""" 
Created on 2016/10/29
 
@author: kenny.huang

""" 

import ConfigParser
import os

#获取config配置文件
def getConfig(section, key):
    config = ConfigParser.ConfigParser()
    #path = os.path.split(os.path.realpath(__file__))[0] + '/lamp.conf'
    path = os.getcwd() + '/lamp.conf'
    config.read(path)
    return config.get(section, key)
